package zytrade.service.mobile.dao;
import zytrade.service.mobile.entity.TerminalVersionDO;
import java.util.List;

/**
 * @Author: Wu
 * @Description:终端版本dao接口
 * @Date: Create in 15:31 2017/11/9
 * @Modified By:
 */
public interface TerminalVersionMapper {

    /**
     * @Author: Wu
     * @param id
     * @Description:根据id删除
     * @Date:  Create in 15:31 2017/11/9
     */
    public int deleteByPrimaryKey(Long id);

    /**
     * @Author: Wu
     * @param record
     * @Description:插入实体
     * @Date:  Create in 15:31 2017/11/9
     */
    public int insert(TerminalVersionDO record);

    /**
     * @Author: Wu
     * @param record
     * @Description:选择性插入实体(插如前须先查出主键)
     * @Date:  Create in 15:31 2017/11/9
     */
    public int insertSelective(TerminalVersionDO record);

    /**
     * @Author: Wu
     * @param id
     * @Description:根据idc查询实体
     * @Date:  Create in 15:31 2017/11/9
     */
    public TerminalVersionDO selectByPrimaryKey(Long id);

    /**
     * @Author: Wu
     * @param record
     * @Description:根据id动态修改实体
     * @Date:  Create in 15:31 2017/11/9
     */
    public int updateByPrimaryKeySelective(TerminalVersionDO record);

    /**
     * @Author: Wu
     * @param record
     * @Description:根据id修改整个实体
     * @Date:  Create in 15:31 2017/11/9
     */
    public int updateByPrimaryKey(TerminalVersionDO record);

    /**
     * @Author: Wu
     * @param record
     * @Description:查根据传入对象查询所有记录
     * @Date:   Create in 15:31 2017/11/9
     */
    public List<TerminalVersionDO> searchEntityList(TerminalVersionDO record );

    /**
     * @Author: Wu
     * @param record
     * @Description:查询总记录
     * @Date:  Create in 15:31 2017/11/9
     */
    public int getEntityCount(TerminalVersionDO record);


    /**
     * @Author: Wu
     * @param terminalVersionDO
     * @Description:查询最高版本
     * @Date:  Create in 15:31 2017/11/9
     */
    public TerminalVersionDO searchMaxVersionEntity(TerminalVersionDO terminalVersionDO);

    /**
     * @Author: Wu
     * @param ids
     * @Description:批量切换外网
     * @Date:  Create in 15:31 2017/11/9
     */
    public int switchRelease(List ids);


}